package test;

import org.apache.log4j.Logger;
import proxy.IntermediaryCglibProxyFactory;
import service.Buyer;
import service.impl.RealBuyer;

public class havealookCglibProxy {
   private static Logger logger = Logger.getLogger(havealookCglibProxy.class);
    public static void main(String[] args) {
        Buyer buyer = IntermediaryCglibProxyFactory.create(RealBuyer.class);
        String result = buyer.havealook();
        logger.info(result);
    }
}
